package com.chianghao.rockframewrok.starter.web.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "chianghao.cors", ignoreUnknownFields = true)
public class CorsProperties {

	private boolean isCors;
	private String AllowedOrigin;
	private String AllowedHeader;
	private String AllowedMethod;
    private String pathExpression;

	public String getPathExpression() {
		return pathExpression;
	}

	public void setPathExpression(String pathExpression) {
		this.pathExpression = pathExpression;
	}

	public boolean isCors() {
		return isCors;
	}

	public void setCors(boolean cors) {
		isCors = cors;
	}

	public String getAllowedOrigin() {
		return AllowedOrigin;
	}

	public void setAllowedOrigin(String allowedOrigin) {
		AllowedOrigin = allowedOrigin;
	}

	public String getAllowedHeader() {
		return AllowedHeader;
	}

	public void setAllowedHeader(String allowedHeader) {
		AllowedHeader = allowedHeader;
	}

	public String getAllowedMethod() {
		return AllowedMethod;
	}

	public void setAllowedMethod(String allowedMethod) {
		AllowedMethod = allowedMethod;
	}
}
